For the purpose of determining the rights of adverse claimants to any land so entered, the corporate authorities or judge hereinbefore mentioned is deemed to possess and hold the title to such lands in trust from the time of the entry thereof.