Fixing a bug for password max repeat, whose message was hardcoded