fixed a problem where validate could return scopes not as a json array