Adding error states