Fix validation for user name, page name and repository name.