fix invite email body
cleaned up invite code, moved email body to template