basic port validation