Double diffusive convection in porous media under the action of a magnetic field