Implemented Update Profile functionality