Adding login to admin interface and templates