change Register.php file to use dbConnector