$mech->submit_form( with_fields => { 'user[login]' => 'test', 'user[password]' => 'test', }, button => 'commit', );