change get userid method.