fixed updating user information logic