Hardy's inequality for $W^{1,p}