add validation to show-view