Added check for valid column name.