Validation directive fixed