simple input validations