fixed validation for user search