diff --git a/activate.php b/activate.php
index 322b5fd..60e63e3 100644
--- a/activate.php
+++ b/activate.php
@@ -22,7 +22,7 @@ $result = $statement->execute(array('userid' => $userid));
 $user = $statement->fetch();
  
 //check if theres a code for the user delivered
-if($user === null || $user['actuvationcode'] === null) {
+if($user === null || $user['activationcode'] === null) {
  die('
  No User matching your request.
');
 }
diff --git a/activation.php b/activation.php
index 93e108b..99c4fbe 100644
--- a/activation.php
+++ b/activation.php
@@ -48,7 +48,7 @@ if(isset($_GET['send']) ) {
  $mailrcpt = $user['email'];
  $mailsubject = "Activate the Account of ".$user['username'];
  $from = "From: Account Activation Service "; //place a real address if we use this in production
- $url_activationcode = 'https://loginpagefoo.td00.de/resetpass.php?userid='.$user['id'].'&code='.$activationcode; //this shouldnt be my domain in prod..
+ $url_activationcode = 'https://loginpagefoo.td00.de/activate.php?userid='.$user['id'].'&code='.$activationcode; //this shouldnt be my domain in prod..
  $text = 'Hallo '.$user['username'].',
 please use the following URL to activate your account in the next 24h:
 '.$url_activationcode.'