Updated the logic to determine if we are on a node create form.