Richard is right. You need a connection from the motor to the frame or you will have trouble with every electrical device that is not mounted on the motor.
Battery to motor is not the conventional way to ground the motor, but it should work fine. Either way you still need to make sure the motor and frame have a big fat electrical connection like a ground strap.