 					publication_agent_id=#publication_agent_id#
 				</cfquery>
 			<cfelse>
+				<cfset noAuthFail=false>
 				<cfquery name="uAuth" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
 					update publication_agent set
 						agent_id=#agent_id#,

<!---------------------------------------------------------------------------------------------------------->
<cfif action is "saveEdit">
<cfoutput>
	<cfif numberAuthors lt 1>
		At least one author is required to save.<cfabort>
	</cfif>
	<cftransaction>
		<cfif len(doi) gt 0>
			<cfinvoke component="/component/functions" method="checkDOI" returnVariable="isok">

			<cfset agent_id = evaluate("n_agent_id" & n)>
			<cfset author_role = evaluate("n_author_role" & n)>
			<cfif len(agent_id) gt 0>
				<cfset noAuthFail=false>
				<cfquery name="insAuth" datasource="user_login" username="#session.dbuser#" password="#decrypt(session.epw,session.sessionKey)#">
					insert into publication_agent (
						publication_id,
