Added a custom validation directive. It does not seem to be used even though I call it.