fixed login error redirect