Adding the error class