add coupling between server and client while logging in