created Validator class to check user inputs for a valid data entry