fixed login newItem problem