If you had a lien placed on your house 2 months before you filed bankruptcy and you filed bankruptcy on that creditor is the lien still valid?

All liens survive bankruptcy. You can get rid of the lien by "avoiding" it.

Look up "Avoiding Liens" in google or findlaw.com for more info.