show error message when error occured in main form