Added server-side field validation.