check for int/float in text input works