fixed postinst for validation