Fixes bug where after login you're redirected to an invalid view