add authenticateFilter logic.