FEATURE: validate text field length based on record objects allowed length

Fixes #3681 
You can combine this with the statement on line 64, and possibly even with 62 (by shifting 63 above and not using the value until the combined if statement returns true)