Add directive to validate user name.