updated validation to use a generic view and a single template