Replaced error id with class