Defined the edit and update actions for the users_controller.
Rewrote the signed_in? method to be more readable.