[% IF msg == 'success' %]

You were successful.

[% ELSE %] [% msg IF msg %] ... show the form because something went wrong ... [% END %]