added basic token authentication.