add authentication prototype code