Add signin form and use apis to determine which query to send