Remove validateData function