changed api_domain
compile in production
automatically logout if api invalid