Validation for user search.