diff --git a/activation.php b/activation.php
index c650575..d310930 100644
--- a/activation.php
+++ b/activation.php
@@ -38,7 +38,10 @@ if(isset($_GET['send']) ) {
$user = $statement->fetch();
if($user === false) {
- $error = 'no user found';
+ $error = 'no user found';
+ }
+ if($user['username'] !== $_POST['username']){
+ $error = 'no user found/invalid user';
}
if($user['activated'] == "1"){
$error = 'user already activated!';