Added digit verification

Now checks if number isn't too big or is negative.