Made validsig not return error code on a failure result, only on actual errors