Included validations for the attributes, and changed the type of quantity from integer to float