         cb 'Email is already in use.', null
       return
     
-    @randomPass (pass) ->
+    @randomPass (pass) =>
       user = new User
         username: username
         email: email

          Regards,
          The Volumetric Bans Team          
        """
      , (success, message) ->
        if success
          cb null, user
        else
          cb 'Error with email delivery', user

      {email: email}
    ]

  @findOne query, (err, user) =>
    if user
      if user.username is username
        cb 'Username is already in use.', null
