Check for readonly in validationDirective