Added validation on date time directive