Redirect to login on 401 error