As has been suggested, when you moved in, was the stain present and if so, did you take pictures of it to document it was there at move in?
What is the issue with the stain and the carpet? Is the landlord keeping a portion of your security deposit that you believe you are fairly owed (for example)?
Gail