Added login and logout features