TextField only accepts numbers

A new method added that only allows the user to input number