add ui-state-error to message when there is a permission error.