Changed mysql_connect to mysqli_connect
applied verification for the registerPage.php