fix login failure