fix validate function for pg_conf