fixed redirect in register.php