Added route middleware ensureNotAuthenticated

So, when you try to access /register when logged in, it redirects you
to the home page.