diff --git a/programs/mutant-2/swen90006/passbook/PassBook.java b/programs/mutant-2/swen90006/passbook/PassBook.java
index 8f710dcecef64ddffb54b885bbdf2a432bdd4161..56f99afe120386288a335ed187b51de8815c41f9 100644
--- a/programs/mutant-2/swen90006/passbook/PassBook.java
+++ b/programs/mutant-2/swen90006/passbook/PassBook.java
@@ -84,7 +84,7 @@ public class PassBook
 	}
 	//check the passphrase strength
 	else {
-	    if (passphrase.length() < MINIMUM_PASSPHRASE_LENGTH) {
+	    if (passphrase.length() <= MINIMUM_PASSPHRASE_LENGTH) {
 		throw new WeakPassphraseException(passphrase);
 	    }
 	    
@@ -243,7 +243,7 @@ public class PassBook
 
 	PasswordTable pt = details.get(passbookUsername);
 	//if this returned nothing, the user has no details for any url
-	if (pt != null) {
+	if (pt == null) {
 	    throw new NoSuchURLException(passbookUsername, url);
 	}