added invitation mail and others functionality in it.