How to check if value entered in Material ui textfield is an