manage account login and registration via JSON for awa