new method to check if user input is int, inpt%1==0 then int