UI tweaks and cleanup
Added validations on secret decoder
Modified JSON serialization code to be more interoperable