Email validation for user signup form
Can be managed by strpos easily. Below code will be in validateForm function

 $email = 'abc.def@mycompany.com';
 if (valid_email_address($email)) {
  if (strpos($email, '@mycompany.com') !== FALSE) {
       // Set form error message
   }
 }