date validation (index.php)