added validation on date, tested