client-side validation added to DataType