Fix undefined error in sign-out route