creating a class for validations e the specifications to it