fixed login screen onResume method