added flash alert if asset is not valid for saving