fixed login test failure