validation query is missing space