added marandaupload.php, fixed various register.php bugs