getting invitation details by hash