Render authentication error in case of state issue (closes #583)