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