Updated member service to handle login query