register.php: Bug #4

Updated pursuant to #4