def validate_input_data(data):
    """
    Takes in user input data
    Checks if all the keys are provided
    Raise key error if a key is missing
    Returns a validated data in a dict format
    """
    cleaned_data = {}
    for key in data:
        if data[key] is None:
            assert False, key + ' key is missing'
        else:
            cleaned_data[key] = data[key]
    return cleaned_data