corrected validation for user name while editing an existing user.