Regexes and validation for user input