Checking if the user exists in the json file first.