Redirect to the current page if we are not on the HomePage or on the
RegisterPage