renamed templates/error.html to templates/show_msg.html and made changes accordingly in views/user.
<html>
<head>
<title>{% block title %}PyTasks{% endblock %}</title>
</head>
<body>
<h2><a href="/">PyTasks</a></h2><br />{% block content %}This is the default content{% endblock %}</body>
</html>