Added simple authentication check