Change,
<input type="password" name "pass"/></p>
to
<input type="password" name="pass"/></p>
Because of the invalid HTML Markup (missing =), PHP won't see the input "pass". So it won't appear in the $_POST array, so it's giving you an undefined index error because you're trying to reference something that doesn't exist.