fixed double login problem