edit date validation