Fix login success redirect bug