fixed logout during challenge issue