Fix issue with API Login not working