Support custom error message for password failure

... meet the requirements of the regex specified.