added validation for datetime

Checks to see that no event can be created in the past time.