worked on logging in and out functionality