added login_count, added demo to asset precompile