end of log in log out