diff --git a/src/usernameregistrationbox.cpp b/src/usernameregistrationbox.cpp
index 8805a67fb5b251a8493992df9039871ed98e424b..53a54e149ac1e0c095d2bb75e299279cbf3770e9 100644
--- a/src/usernameregistrationbox.cpp
+++ b/src/usernameregistrationbox.cpp
@@ -408,6 +408,7 @@ build_view(UsernameRegistrationBox *view, gboolean register_button)
                 &lrc::api::NewAccountModel::nameRegistrationEnded,
                 [=] (const std::string& accountId, lrc::api::account::RegisterNameStatus status, const std::string& name) {
                     if (accountId != (*priv->accountInfo_)->id) return;
+                    if (name == "") return;
                     gtk_spinner_stop(GTK_SPINNER(priv->spinner));
                     gtk_widget_hide(priv->spinner);
                     gtk_widget_set_sensitive(priv->entry_username, TRUE);