Morphological and photometric properties of active and non-active galaxies in the green valley