(a) It shall be unlawful for any person to write, or cause to be written, or knowingly permit to be written, in any record in any hotel or motel, any other or different name or designation than the true name of the person registered therein. Identification shall be required to be produced at registration. (b) It shall be unlawful for any hotel or motel owner, operator, manager, or person in charge of a hotel or motel to allow a guest to pay for or occupy a guestroom without identification.