You need to return a MembershipUser instance in the function which is the return type for it. Currently it isn't returning what it is supposed to return.
There is a good tutorial at codeproject : Custom Membership Providers. You might find it helpful in understanding where you aren't getting right.