       
         Logger.info('Sent sign-up email to new user')
     
-    if existingUser? && existingUser.enabled != enabled
+    if existingUser? and existingUser.enabled != enabled
       action = if enabled then 'enabled' else 'disabled'
       Logger.info('User ' + action, user._id)
       AccountsUi.sendEmailToAdmin
         subject: 'User ' + Strings.toTitleCase(action)
         html: '<p>User has been ' + action + '</p>' + userTable
-      if enabled && !user.profile.activation?.date?
+      if enabled and !user.profile.activation?.date?
         Meteor.users.upsert selector, $set:
           'profile.activation.date': new Date()
         user = Meteor.users.findOne(selector)

    isAdmin = AccountsUtil.isAdmin(@userId)
    config = AccountsUi.config()
    signUpAllowed = config.signUp.enabled
    unless isAdmin || signUpAllowed
      throw new Meteor.Error(403, 'SignUp not permitted.')

    modifier = Objects.flattenProperties(modifier)
    username = modifier.username

  user = attempt.user
  config = AccountsUi.config()
  signUp = config.signUp
  if (config.account.enabledByDefault and user.enabled != false) or
      AccountsUtil.isAdmin(user) or
      user.enabled == true
    return true
  else
