Add endpoint for api login