bug 1450 - fix login redirect issue