updated
Refactoring date validation. Nobody will escape!