fixed double login issue