Basic program flow + authentication check