Adding the removal of the alert box after 3 seconds.