changing logic for admin login and addition of child template