validation on submit date