Added User.authenticate method. New error: expected user, got nil.