User is able to login and logout correctly