added random email_code generator and order status to order object