         html: '<p>A new user has signed up:</p>' + userTable
 
       # Send the user a new email to verify their email address.
-      if email? && email.verified != true
+      if email? and email.verified != true
         # If no password is set then the enrollment link will create a password for the user.
         # If the password is set, the user only needs to verify their email address.
         if password?

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

    @unblock()

    existingUser = Meteor.users.findOne(selector)

    if existingUser? and !options.allowUpdate
      throw new Meteor.Error(500, 'User already exists.')
    else if !isAdmin and existingUser? and existingUser._id != @userId
      throw new Meteor.Error(403, 'Not authorized to update other users.')
    else if !isAdmin and !existingUser? and !signUpAllowed
      throw new Meteor.Error(403, 'SignUp not permitted.')
    
    unless existingUser then modifier['profile.signUp.date'] = new Date()

    enabled = modifier.enabled
    if enabled? and !isAdmin
      throw new Meteor.Error(403, 'Only admins can enable/disable users.')
    else if existingUser? and AccountsUtil.isAdmin(existingUser) and enabled?
      throw new Meteor.Error(403, 'Admins cannot be enabled/disabled')
    unless existingUser
      # For users without the `enabled` field, enable them if we don't require sign-up approval
      # or the admin user is creating the new user.
      enabled ?= config.signUp.requireApproval == false or isAdmin
      modifier.enabled = enabled

    Meteor.users.upsert selector, $set: modifier
