NEMO-2630.  Add validations to decimals

done again 2-2-nemo-stable branch as a single commit