Client side field validation.