Added a bunch of login/logout stuff from the frontend