change invalid to valid for quiz