Improved validation
made the value column in the datapointrepo a counter