added a loading screen after login to prevent the user changing pages if not loaded, avoiding status 401 errors