fixed json creation and login and create both now work