first commit,change in routes and controller. added validate.js in lib