fixed login detect