Parse message templates
Put invalid class on form if not valid