@Command
public void addUser() {
if (Objects.equal(createUserPasswordFirst, createUserPasswordSecond)) {
if (checkUserFieldComplexity(createUserUsername)
&& checkUserFieldComplexity(createUserPasswordFirst)) {
User user = new User();
user.setUsername(createUserUsername);
user.setPassword(createUserPasswordFirst);
UsersBusiness.persist(user);
setCreateUserWindowToDefaults();
users = UsersBusiness.getUsers();
selectedUser = user;
} else {