Simplified the err message validations.