recoded the button-check validation without bugs. Fixed bug where it displayError function would execute after the quiz was done