Retry password generation until one passes