//users login with their email address
newTodoListUser.setLoginName(email);
newTodoListUser.setEmail(email);
identityManager.add(picketLinkUser);
identityManager.updateCredential(picketLinkUser, new Password(password));
entityManager.persist(newTodoListUser);
entityManager.flush();
entityManager.detach(newTodoListUser);