Add api call for authentication