token based auth added for API stuffs.