added puts for testing authentication