added masked input for port number