Email condition not working on edit submission