Fix change_password.py

Previously, was updating password at wrong time