Fixing redirect to 'index' after login.