private Element createPersonalInfo() throws ProfilerException {
        Element personalInfo = doc.createElement("details");

        if (request.getParameter("gender") != null && !request.getParameter("gender").isEmpty()) {
            personalInfo.appendChild(createSimpleElement(request.getParameter("gender"), "gender"));
        } else {
            request.setAttribute("error", "Please fill you gender.");
            throw new ProfilerException("Fill gender!.");
        }
        if (request.getParameter("dateofbirth") != null && !request.getParameter("dateofbirth").isEmpty()) {
            personalInfo.appendChild(createSimpleElement(request.getParameter("dateofbirth"), "birthDate"));
        } else {
            request.setAttribute("error", "Please fill you date of birth.");
            throw new ProfilerException("Fill date fo brith!.");
        }
        if (request.getParameter("placeofbirth") != null && !request.getParameter("placeofbirth").isEmpty()) {
            personalInfo.appendChild(createSimpleElement(request.getParameter("placeofbirth"), "birthPlace"));
        } else {
            request.setAttribute("error", "Please fill you place fo birth.");
            throw new ProfilerException("Fill place of birth!.");
        }
        if (request.getParameter("citizenship") != null && !request.getParameter("citizenship").isEmpty()) {
            personalInfo.appendChild(createSimpleElement(request.getParameter("citizenship"), "citizenship"));
        } else {
            request.setAttribute("error", "Please fill you place fo birth.");
            throw new ProfilerException("Fill your citizenship!.");
        }

        return personalInfo;
    }