Fixed Notices in register.php