Updated API calls to fix login issue