Automatic Continuity of Homomorphisms Between Banach algebras and Frechet algebras