Implementation of Token Based Authentication