fixed password error in resentInvitation