if (($username eq "$security") && ($type ne "Check In")) {