findUser function completed