Added log out functionality to profile view.