Consider rewriting to:

"We could use the route helpers to ensure that the user would be redirected to the login page when the restricted URL is visited."