added validation to collect and ws import