re-wrote register.php because the server does not have mysqli. stupid server.