Added random setting of passwords if no password provided