public static void saveSalon(Salon salon, String password1, String password2) { System.out.println("Add saveSalon"); if (password1.equals(password2)) { Account acct = new Account(); acct.email = salon.email; acct.password = password1; acct.type = UserTypes.SALON; acct.save(); salon.acctId = acct.id; salon.save(); String text = "Hi, your Repinzle account has been created. Your temporary password is: " + acct.password; String[] to = {salon.email}; String from = "*****@*****.**"; Email msg = new Email(text, to, from, "Confirm your Repinzle salon account", "Repinzle"); msg.sendMessage(); View.salon(salon.key); } else { salon("The passwords entered do not match"); } }