Added control of empty input (from client to server)