Added checks for issuer, audience, not before, and subject. Refactored the encoding and decoding functions