If you read the documentation on wp_login_url
, you can specify a redirect URL without having to use that hidden input field. Alternatively, you could just use the wp_login_form
function to do exactly what you want:
<?php wp_login_form(); ?>
Just toss that in there in place of your form, and read the documentation on that function to learn how to customize it.