First draft of validator that works also with unsigned numbers (not
fully working)