Two foreign nationals appear in court for immigration act violations