changes on log in and log out