Added a private method to enforce different password policies