This will take some hand coding to work out. You would either have to edit the webassist/security_assist/helper_php.php file so that it can join two tables... or remove the success redirect add another recordset below the login code to look up the company information and save the session variable and then redirect based on the CompanyStatus returned from that recordset.
We could help with this in a premium support ticket.