Redirect if Route not found and fixed the signout issue