limit the input length of login name or password to be 50
also keep hyphen and underscore in pdf contents for search(OPSK-46)