Modified the update profile code to update the local storage as well

Modified the update profile functionality to modify the profile data
stored in the local storage in addition to the database. This ensures
that the user experience is as seamless as possible.
Removed the LocalStorage class as it isn't needed.