fix can't find user by name and password bug