 defaults = misc.defaults
 required = defaults.required
 
-set_account_tab_label = (signed_in, email_address) ->
+set_account_tab_label = (signed_in, label) ->
     if signed_in
         top_navbar.pages['account'].icon = 'fa-cog'
-        top_navbar.set_button_label("account", email_address)
+        top_navbar.set_button_label("account", label)
     else
         # nothing
         top_navbar.set_button_label("account", "Sign in", "", false)


            @settings[prop] = val


    set_view: () ->
        if not @settings?

            account_settings.set_view()
            # change the view in the account page to the settings/sign out view
            show_page("account-settings")
            # change the navbar title from "Sign in" to their name
            set_account_tab_label(true, account_settings.fullname())
            $("#account-forgot_password-email_address").val(account_settings.settings.email_address)


