if ($valid_user eq '') { print redirect('http://localhost/index.html'); }