* @throws IOException if an I/O error occurs
*/
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
UsuarioModel model = new UsuarioModel();
HttpSession session = request.getSession();
if(request.getMethod().equals("POST")){
if (model.validarUsuario(new Usuario(request.getParameter("user"),request.getParameter("pass")),request.getSession(true))) {
response.sendRedirect("PostsController");
}else{
response.sendRedirect("login.jsp");
}