added category page, seperated loginvalidation.js