Client-side validation based on the specification.