finished adding in framework, fixed validation error