added functionality to assert passwords are following domain guidelines with tests