@RequestMapping(value="/Inscription.htm", method = RequestMethod.POST)
	public ModelAndView inscription_post(HttpServletRequest request, HttpServletResponse response)
        {
            String lastname = request.getParameter("lastname");
            String firstname = request.getParameter("firstname");
            String password = request.getParameter("password");
            String email = request.getParameter("email");
            String password2 = request.getParameter("confpass");

            if (!lastname.isEmpty() && !firstname.isEmpty() && !password.isEmpty() 
                                    && !email.isEmpty() && !password2.isEmpty())
            {
                if (!password.contentEquals(password2)){
                   return new ModelAndView("addShop", "message", "Different passwords"); 
                }
                if (userDAO.create(lastname, firstname, password, email))
                {
                    try
                    {
                        boolean isCreated = new java.io.File(request.getSession().getServletContext().getInitParameter("serverLocation")+email).mkdir();
                        if (isCreated)
                        {
                            fileDAO.create(email, false, request.getSession().getServletContext().getInitParameter("serverLocation")+email, true, userDAO.get(email), Boolean.TRUE, null);
                            return new ModelAndView("addShop", "message", "SUCCESS");
                        }
                    }
                    catch (Exception e)
                    {
                        return new ModelAndView("addShop", "message", e.getMessage());
                    }
                }
                return new ModelAndView("addShop", "message", "FAIL");
            }
            return new ModelAndView("Inscription");
	}