{% if error_msg is defined %} {% else %} {% endif %}