Fixed login page refresh issue and added user profile page

- Fixed user session issue where user has to login after page refresh.
- Added user profile page to update a user.