Added view redirecting based on user login
Fixed conflict in routes.js