more fixes to integer validation