Logout

added logout functionality and refactored user profile view to single page