add order validation
Merge pull request #60 from ricarora/useredit

add order validation