fix issue with duplicate login