updated api call for state requirements from POST to GET