basic auth (also checks to see if key already exists)
removed debugging