##
my $mech = WWW::Mechanize->new();
$response = $mech->get($URL);
$mech->submit_form(
fields => {
UserName => $username,
Password => $password,
},);