Language Constant Not Displaying in External Script

Joomla 3.9.14 I have an external script allowing users to register as a user on my Joomla site. It all appears to be working apart from error displaying. My code is below; register.php <?php // database connection include(‘conn.php’); require_once JPATH_BASE .’/components/com_users/models/registration.php’; $model = new UsersModelRegistration(); jimport(‘joomla.mail.helper’); jimport(‘joomla.user.helper’); $language = JFactory::getLanguage(); $language->load(‘com_users’, JPATH_SITE); // hard coded…