The mayor of Dolton, Illinois, hired a registered sex offender as a code enforcement officer