added a check for acct length