Added log out functionality