Handle client login and part