fix a bug--can not login