functionality for checking for bonus codes submissions in DocumentManager