Added toast to check for error