The biggest problem is that names can not begin with a numeric.
Rename your select option menu.
- <select size="1" name="1stDepartment">
A few other problems are:
Move your script into the <head> of the document.
Currently it appears after the closing body tag.
Using this script/approach. Your login is not secure in that a user can simply view source and grab a username/password or the next page value.