Get a list of realms from the database and automatically select realm in dropdown based on current cookie