Input Validation Model