law requiring candidates