 # Password settings
 Template.settingsPassword.events =
   'click button.change-password': (event, template) ->
-    PASSWORD_READY_FOR_VALIDATION = true
-    PASSWORD_CONFIRMATION_READY_FOR_VALIDATION = true
+    passwordReadyForValidation = true
+    passwordConfirmationReadyForValidation = true
     passwordFormMessages.resetMessages()
     event.preventDefault()
     currentPassword = $('#current-password').val()

# Username settings
Template.settingsUsername.events =
  'click button.set-username': (event, template) ->
    USERNAME_READY_FOR_VALIDATION = true
    usernameFormMessages.resetMessages()
    event.preventDefault()
    username = $('#username').val()

    return # Make sure CoffeeScript does not return anything

  'blur input#username': (event, template) ->
    usernameReadyForValidation = true
    username = $('#username').val()
    validateUsername username, 'username'

