Added comprobations for check if the transaction is valid (Transaction method)