Added login and logout features
Update 2