It is because you have written the following case out of switch { }
case "load":
load(passwords);

instead of ending switch i.e. } after save(passwords);
end } after load(passwords);
i guess...