added validation to rest controller to exit early when a cheque is reused