reset login form when logging out, and minor clean-up