     else
       JUser.one {username}, (err, user)=>
         unless user then callback new KodingError "Unknown username"
-        else @create client, user.getAt('email'), callback
+        else @create client, {email: user.getAt('email')}, callback
 
   @recoverPasswordByEmail = secure (client, email, callback)->
     JUser = require './user'

        certificate = new JPasswordRecovery {
          email
          token
          username  : user.getAt('username')
          status    : 'active'
        }

            Emailer.send
              From      : @getPasswordRecoveryEmail()
              To        : email
              Subject   : defaultSubject()
              TextBody  : defaultTextBody messageOptions
            , (err)-> callback err

  @validate = secure ({connection:{delegate}}, token, callback)->
