date validation directive