Added basic auth for API