Added authentication via token for the api