simplified some code to update user profile