correct user log in and log out scenarios