add_creds: fix check for number of factors