added validation directive