Modified JAAS to emulate browser and submit form