add validation & error view