Support user input validation.