Fixing some validation issues with datetime fields