Added client-side field length checks.