CLOUDSTACK-7977
Fix password generator, add guards for minimum length