updating base controller to include login with cookies