Added login and logout basic functionalities