Finite element approximation of field dislocation mechanics