login redirect fix