diff --git a/activation.php b/activation.php
index 99c4fbe..f769877 100644
--- a/activation.php
+++ b/activation.php
@@ -39,6 +39,9 @@ if(isset($_GET['send']) ) {
if($user === false) {
$error = "no user found";
+ }
+ if($user['activated'] == "1"){
+ $error = "user already activated!"
} else {
//check if theres a code already
$activationcode = random_string();