changes model to validate presence of not null columns