working on the api login