added logging, fixed error in username/password servlet