check if username exists and check if returned json is empty