added logins_controller to handle user sessions