added validations to controller
fixing issues with trimming columns, and accounting for scenarios where
objects may not have values for columns
added fixes for issuing column names and data in order