add kay/lib and add user login processing