Added another exception type to handle poorly formatted JWT input

Also let ReSharper clean up a few things