login and logout were implemented sucessfuly