add validation to form entities