revised date validation for url