removed obvious bugs in api_key retrieval through API using basic authentication