Added basic validation for transactions. Added logic to calculate and display portfolio summary