Custom textbox validating user input in