modification for pw strength check