Improved the update profile logic to get the user profile from the local
preference file instead of fetching user data from the database
everytime the user visits the update profile page.