Just needs a few validations and cleanup

the Purchase show method looks familiar... Helper for counting orders?