Fixed the login example
Removed dead code.
Fixed a NPE in the ServingWebpageHandler class.