fix some bugs

in email class & in the activation.php file