modified authentication backends, added template context processors