renamed templates/error.html to templates/show_msg.html and made changes accordingly in views/user.
{% extends 'base.html' %}
{% block content %}
{% if message %}
{{message}}<br />
<a href="/">click here</a> to return to Homepage
{% endif %}
{% endblock %}