Improve vejregister parser: integrity checking the input while parsing