Jwt validation and generation - C#