Improvements for the change password method.

This pull request addresses issue #72.
Good catch @roustem ! Updating the PR...