validate date fields