SessionsController and related routes implemented for login and logout