Mixed identities in groups