   !passwordFormMessages.getErrorMessage field
 
 validatePassword = (newPassword, messageField) ->
-  return unless PASSWORD_READY_FOR_VALIDATION
+  return unless passwordReadyForValidation
   try
     User.validatePassword newPassword, messageField
     passwordFormMessages.resetMessages messageField

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

  !usernameFormMessages.getErrorMessage field

validateUsername = (username, messageField) ->
  return unless usernameReadyForValidation
  try
    User.validateUsername username, messageField
    usernameFormMessages.resetMessages messageField
