#28 adding isAuthenticated method to main controller
#28 adding session middleware in express helper