[pgb] implement plugin validation for pgb apps