modify login redirect bug