gets authenticated json from login