js validation for activities (1)