query.setParameter("custEmail", form.getCustEmail());
query.setParameter("custPassword", AESEncoder.getInstance().encode(form.getCustPassword()));
List<?> list = query.getResultList();
if (list.size() == 0) {
idSecurity.fail();
form.setCustPassword("");
this.initCartInfo(form, site, shoppingCart, request, messages);
messages.add("login", new ActionMessage("content.error.login.invalid"));
saveMessages(request, messages);
ActionForward actionForward = actionMapping.findForward("error");