added parameter error handle, that allows to show authentication error box