Improvements for the change password method.

This pull request addresses issue #37.