Implemented logging in and out with a SessionsController.