added errors for fields