automatic redirection to the login route when accessing a secured route whilst not logged in