validations queries