Add a addMessage and resetMessages function that takes a string and appends a message to it. Style the messages container at the top of the block. Add tests for the validations. Append an error if the JSON parsing fails.