Moved set user to a before action on the user model.