Created current_user, logged_in? helper functions and new sessions function and session controller