added validation for invoice details