Completed error check for quiz