Added exception handling for invalid dates in datetime forms