The first change was easy. The second one I'm having trouble with. I added this:
if ((mb_strlen($data['company']) < 3) || (mb_strlen($data['company']) > 128)) {
$error['company'] = $this->language->get('error_required');
}
to customer.php (error_required is defined in language definitions), but when I try to create an account and leave the company name blank it doesn't give me an error. What am I missing?