Fix success and error flash messages on quiz.