js validation for activities (2)