Used forms to check validity of queries in utils