Modify action after login success to resolve redirect error.