Implemented logic to change an account's password