The host galaxies and classification of active galactic nuclei