add validation for dates in election creation form