<?php print_r($_POST); exit;
if (mysqli_num_rows($result) != 1) { // header('location: index.php'); // exit; }
echo $query = "SELECT * FROM Users WHERE EMail = '" . $_POST['EMail'] . "' AND Password = SHA1('" . $_POST['Password'] . "')";
echo mysqli_error($link);