HC questions legality of speaker swearing in president