Added maxLength to text