fixed templatetag for errors displaying