added validation to some props (collection, model) and changed var options to props (because in fact the object will be our component props)