Added update method for user profile.