work with login error