fix bug to set auth_key in user model properly