added just one toast message for an error check