fixed valindation to re-render data