Modified API to only return JSON for roles and login