Fixed bug where reset button would not reset the error messages