Wait for the admin_users collection to be loaded before redirecting

Previously we were redirecting to the login page sometimes even when the user was logged in as the admin.

Fixes #176