Implemented the method isPasswordSecure.