Added restrictions on text entry in number inputs