user.validate_password = false
user.update_attributes(remember_token: User.digest(remember_token))
user.validate_password = true