Fixed logout and register URL to support situation where servlet URL is set.