fixed email delivery and added user account activation