Moved the functionality to hide the error label inside the 'hide' custom event