Assuming that with redirect you mean to allow the form to submit,
give a name to your password field
<input type="password" name="pass" />
and change
<form class="form1" action="http://google.com">
to
<form class="form1" action="http://google.com" onsubmit="return (this.pass.value==='hello')?true:false;">
Demo at http://jsfiddle.net/nCfQ4/1/