fixes #6636, #6657, #6694 - add field length validations, extend audit field length