Sorry, I missed your response.
OK, I had to do a little test to figure these things out, but first you need method="POST" in your form tag. Second, the indexes into $_POST are the name attributes of the input fields, so if you want to check for submit, you want to add name="submit" to that tag like:
HTML Code:
<input name="submit" type="submit" class="button" // etc
If you don't have a name attribute, the input will not go into the $_POST array at all.
You also want to use 'username' when checking the name, since that's the value of the name attribute.