Got login/logout working