Magnetism On Habitability of Exoplanets