added integer validation