updated the existing change password method and modified the tests as well.