login redirect fixing