adds validations to all inputs on the cms side