Add validation for query parameters.
Remove unnecessary Join.
Rearrange declarations in index_article.