Got username servlet to encode JSON