fix the bug: login failed when logining from login drop down