fixed deprecated error
added invite to confirmation mail