Edit code for field validation alert