private boolean ValidateEmail(String email){ EmailValidator a = new EmailValidator(); if (!a.isValid(email, null)) return false; try { boolean emailExist = userDAO.bool("exist.user.bymail", email); if (!emailExist) return false; } catch (Exception e) {return false;} return true; }