add validation and test for order model, also add_line_items_from_cart function