Logged In: YES
user_id=620333

This is occurring because the form action uses $php_self
(note PHP_SELF) which is using the variables from the page
load in most cases, which in this case is mail_sent. I
think this shouldn't be too difficult to fix.