How to make quantity in Purchase a required field?