add assertion for testing login user initialization
update json init to check for null