Add validity field in template_route and tempalte_route_point model, modify views and controllers