implemented that before user can see query result, he has to sign in first