redirect delay
diff --git a/index.php b/index.php
index 06e93c0..cdc78ec 100755
--- a/index.php
+++ b/index.php
@@ -239,10 +239,9 @@
                 $token = $_GET["token"];
                 $user = redis_get($token);
                 if ($user){
-                    echo "<h1>Email Confirmation</h1>";
                     if (ldap_add_user($user)){
                         if ($REDIRECT_TO)
-                            header("Location: ".$REDIRECT_TO);
+                            header( "refresh:5;url=".$REDIRECT_TO);
 
                         $pending = redis_get("pending");
                         if ($pending){
@@ -253,8 +252,10 @@
                             }
                         }
                         redis_inc_ipdata(getClientIP(), "register");
+                        echo "<h1>Email Confirmation</h1>";
                         include "html/mail_confirmed.htm";
                     }else{
+                        echo "<h1>Email Confirmation</h1>";
                         include "html/registration_error.htm";
                     }
                     redis_delete($token);