moved line.errors to field.errors
added red error state and field pointer