create button is disabled if the string is null or the name already
exists in the database