Got login and logout working