Adding transaction model and validates