fixed missing JS validation rules