adding decoding method for JWT