scusa ma il diverso non si fa così?

Codice PHP:
if ($username!=AND $password!=0
        { 
            
header("Location: registrazione.php"); 
    } 
             
else { 
           
header("Location: default.php"); 
      }