added required properties and property type checks. added send properties to schema