Added restriction to text input

Added restriction to text input