add user login(no logout) function in client side and server side