made log in and log out