client-server communication for login works