dates types corrected for validation