moved error div to base.html