Adding in the removeErrorMessage() function