title: Redirecting to different page using hashed password dont work
body: <p>I have this hashing of password with my php code. I want to redirect users to edit_password.php if they are new users. I made them a default account with their username and the default password is admin. the password is my basis to redirect. But I am confused on how to make it with my code, kindly check my code, thanks. 
  Here's my code:</p>
  
  <pre><code>&lt;?php 
  
      require("common.php"); 
  
      $submitted_username = ''; 
  
      if(!empty($_POST)) 
      { 
          $query = " 
              SELECT 
                  id, 
                  username, 
                  password, 
                  salt, 
                  email 
              FROM users 
              WHERE 
                  username = :username 
          "; 
  
          $query_params = array( 
              ':username' =&gt; $_POST['username'] 
          ); 
  
          try 
          { 
              $stmt = $db-&gt;prepare($query); 
              $result = $stmt-&gt;execute($query_params); 
          } 
          catch(PDOException $ex) 
          { 
              die("Failed to run query: " . $ex-&gt;getMessage()); 
          } 
  
          $login_ok = false; 
  
          $row = $stmt-&gt;fetch(); 
          if($row) 
          { 
              $check_password = hash('sha256', $_POST['password'] . $row['salt']); 
              for($round = 0; $round &lt; 65536; $round++) 
              { 
                  $check_password = hash('sha256', $check_password . $row['salt']); 
              } 
  
          if($check_password === $row['password']) // &lt;---- i want to insert some code here like if($check_password === $row['password'] || 'admin') to redirect new users. but i dont know how to.
              { 
                  $login_ok = true; 
              } 
            if($login_ok) 
          { 
              unset($row['salt']); 
              unset($row['password']); 
  
              $_SESSION['user'] = $row; 
  
              header("Location: index.php"); 
              die("Redirecting to: index.php"); 
  
          } 
          else 
          { 
              echo("&lt;font color=red&gt;Login Failed.&lt;/font&gt;"); 
  
              $submitted_username = htmlentities($_POST['username'], ENT_QUOTES, 'UTF-8'); 
          } 
          }
      }
  
  ?&gt; 
  </code></pre>
  
  <p>Thanks in advance.</p>