Fix import bugs, some validation of dates