A finite element analysis of thermal convection problems with the Joule heat