change login should happen in error callback