Working Client Server Communication with Login Functionality