Add $admincheck to store a complete copy of $email. $email appears to be overwritten during the check if the var is empty. now the admin check compares the complete email against the one from the config file.