Moved the ledger creation logic located in transactions controller create method inside the if statement checking to see if the transaction creation was successful.