js validation for activities (3)