base template with password history queue