added routing to the frontpage if we detect that the user is not logged in