fixing errors in activation email script