Improved the change password method