fixed login screen flash on load