Updated to support validating the password against the password change service

I added a function that will let you validate the password against the password change service. We use this type of check in an existing service that we are trying to re-write in Ruby. My C is pretty rusty it may be desirable to remove some of the code that was duplicated to make this work.