Register.php now submits data, cleans it, and checks for validity