Update field condition not working properly in my form