Tweaks to creating transactions and added validation