Added error message pop up for 2 seconds function