Added login/logout servlets and fixed the UserManagerRealm