login function and session

socket connect sever to confirm login