implmented passport middleware.
implemented authenticated filter function.