finished null validation for create functions