login redirect fixes