Added option errorMessageClass