working code transactions and current_user logic

what the heading says.