working with transactions validation