Redirect to login when a 401 response code is received.
to ensure that only logged in users have access to the site.