Prevented null values to be put in table