fixes #7218 - authorize hosts welcome page

When there are no hosts, the welcome page is displayed. This makes sure authorize is called before that.