Allow form access based on a code