add validation method and update show view