fixed bug so signed out users are gracefully redirected to homepage when typing in invalid requests