Completed the Registration class.

Added a control in the Home controller. Now it checks if the user is
logged in.