Add class error or success according the enabled site attribute.