add error processing when access denied