fixed login error where loading screen was always on