updated code to conform to coding guidelines (mostly whitespace); changed password field to type 'password'