Added a check for maxRepeatChars , it checks if any character is repeated for more than maxRepeatChars,if yes the password is  rejected,its case sensitive