close #59: validation of integers fails on negative numbers