First beta version ready
diff --git a/graf.php b/graf.php
index ed44ecb..56cf71b 100644
--- a/graf.php
+++ b/graf.php
@@ -1,3 +1,18 @@
+<?php
+require_once("config.php");
+
+session_start();
+
+if (!isset($_POST["password"])) {
+    header("Location: login.php");
+    exit();
+}
+
+if ($_POST["password"] != "forallexists") {
+    header("Location: login.php?msg=wrong");
+    exit();
+}
+?>
 <!DOCTYPE html>
 <html>
   <head>