fix pasword format config and verify the final format

For esl/MongooseIM#320