Adding custom authentication for api