fixing loading screen when trying to open unauthorized page, #43