moved out query validation, Issue #6

Issue #6 - get rid of styles in html