Custom textbox validating user input