Redirected the user to the / page after logging out to prevent access denied error messages.
check for router