modify on_change_user in main.py