Hotfix: Fix 500 on social media login error

- Save the redirect URL on the session and, if the user cancels or there is some other error case, redirect to the URL.
- Add the error redirect URL setting
- Add a view to handle the redirect