Mesh deforming when armature is moved
You have a bone on different layer which has influence on the legs :


select the bone in the outliner 
switch it to layer 1
go to weight paint for the legs and clean the weight