make sure we redirect to login before trying to load data