Set authenticated in main