Add user login (without cookies) Add query function