Addition of a basic input validation class.