Added client-side date validation