How to limit the Text allowed on the Input Field