Fixed validation check for update user profile.