adds validation and better formatting for csvtext values