getLogin(utf8_decode($username)); if($login == null || mysqli_num_rows($login) > 1){ header('Location: index.php'); } if(password_verify($_POST['password'], $login['password'])){ $_SESSION['loggedIn'] = "true"; header("Location: ../index.php"); }else{ header("Location: ../index.php"); } } ?>