Change the DF field error detection

Implement DF field length and type error correction