modified register to redirect to transaction.php