           ensureCurrentUserAvatar()
 
         if auth.form in ['edit profile']
-          @local.saved_successfully = current_user.errors.length == 0 && (@local.errors or []).length == 0
+          @local.saved_successfully = current_user.errors.length + @local.errors.length == 0
 
         # Once the user logs in, we will stop showing the log-in screen
         else if current_user.logged_in

    # Note that we don't have server side validation because
    # the questions are all defined on the client. 
    @local.errors = []    
    if auth.ask_questions # && auth.form in ['create account', 'create account via invitation']
      questions = customization('auth_questions')
      for question in questions
        if question.required

          data: 
            authenticity_token: current_user.csrf
            trying_to: 'update_avatar_hack'
    else 
      save @local

  componentDidMount : -> 
    writeToLog {what: 'accessed authentication'}
