Added ClientWindow and Login function