Adds validations to form