Improve date validation