M dwarf stars — the by-product of X-ray selected AGN candidates