add login redirect debugging