Modified the CTValidTextField behaviour