Call on_login() in lua script