used ng-minlength directive instead of custom minCharsRequired.