Added validateInput class