@Override
    public void execute(HttpServletRequest request, HttpServletResponse response) throws CommandException, ServletException, IOException {
        String login = request.getParameter("login");
        String password = request.getParameter("password");
        String lastName = request.getParameter("lastName");
        String firstName = request.getParameter("firstName");
        String passwordConf = request.getParameter("passwordConf");
        try {
            if (validate(login, password, lastName, passwordConf, firstName) == true) {
                IPersonDAO personDAO = DAOFacade.getPersonDAO();
                Client client = new Client();
                client.setLogin(login);
                client.setPassword(password);
                client.setLastName(lastName);
                client.setFirstName(firstName);
                personDAO.save(client);
                CommandFactory.getPageCommand("autorization").execute(request, response);
            } else {
                request.getSession().setAttribute("loginError", "error");
                CommandFactory.getPageCommand("registration").execute(request, response);
            }
        } catch (DaoException e) {
            throw new CommandException("cant registr such person", e);
        }
    }