Login redirect fix