Add some port validation to the remote command

also `errors.fail` :)