CTS query working!

Also includes request validation logic