updating user profile controller