It's hard to answer these sort of things blind. My bet is that LWP has little to do with the answer. You're going to have to hack through the JavaScript and see what it's doing.
The big question is what does the login form's target page need in terms of post data in order to get you through? Who knows what fun awaits after that.