Added log out functionality and user location information