public Result execute(Command command) {
        User user1 = userDAO.getUser(((UserDTO) command.getCommandSource()).getLogin());
        if (user1 != null && Arrays.equals(user1.getPassword().toCharArray(), ((UserDTO) command.getCommandSource()).getPassword())) {

            result.setResult(user1.toUserDTO());
            System.out.println("size accounts" + user1.getAccounts().size());
        } else {
            result.setHasError(true);
            result.setError("Invalid Login or Password");
        }
        return result;
    }