Added login and logout
Finished login/logout