check for required arguments.