when we need to setup an FBA authentication in Sharepoint there are a few things to be extra carefull, like Ulrich alert us in his article SharePoint FBA user with secure stored passwords.
Be aware that you will have problems if setting the StorePasswordInSecureFormat and enablePasswordretrieval to true at the same time. One of them should be false.
You can find this article here.