adding to the js object creation page
validation