Added check in case just formID or name is given