Register.php changed for encorporating phpmailer functions