Adding error class