Fix bug. Clear error messages when dates are valid