added basic JWT functionality