Added an admin template and fixed login to admin