connected reset_password to api