change machine not allow ip and hostname empty