Attempt to make signin work for json