fixed a bug of login detection