Added detection for wrong master password.