password->password; if(password_verify($password, $hashedPassword )){ $_SESSION['groupName'] = $groupName; $_SESSION['success'] = "You are now logged in"; header('location: Main.php?login=success'); } } }