User input validation for criteria