Update to LoginController to save endpoint in session