Completed change password functionality.
Code Refactoring.