check textlength befor initiating auth