How to avoid losing account and login failure?