protected void doPost(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException
	{
		String p;
		if ((p = request.getParameter("delete_username")) != null)
		{
			User u = userRepo.getByPK(p);
			
			if (u != null && u.equals(request.getUserPrincipal()))
			{
				userRepo.deleteUser(u);
				this.getServletContext().getRequestDispatcher("/users")
						.forward(request, response);
			}
		}
		else if ((p = request.getParameter("save_username")) != null)
		{
			User u = userRepo.getByPK(p);
			
			if (u != null && u.equals(request.getUserPrincipal()))
			{
				u.setEmail(request.getParameter("Email"));
				u.setWoonplaats(request.getParameter("Woonplaats"));
				u.setPassword(request.getParameter("Password"));
				userRepo.saveUser(u);
			}
		}
		else
		{
			super.doPost(request, response);
		}
	}