checking for negative and non ints