quid validation for input