named queries, validation