fixed query in getting user info