Simple validation about query parameters.
Merge pull request #43 from EasonLiao/validate_para

validate query parameters