validate from_date and end_date of invoices