Class for form validations