No building erected, altered, or in any way changed as to construction or class of use, under a permit or otherwise, shall be occupied or used without an occupancy permit, signed by the building inspector, which permit shall not be issued until the building and its uses, and the uses incidental thereto, comply in all respects with this bylaw.