Wiring up front-end validation based on field max_length