fix admin login, admin routes, and cart functions