Allow to trigger error through an attribute

If error attribute is not nil or false, field is marked as containing error