Fix unauthorized preannounce.
Fix double request problem with HTTP authentication.
Declare password field correctly.