Started invoice validation code. Added automatic generation of invoice number. Streamlined the authorization header management.