I'm confused why you made a whole lot of change to the code here. The logic is still all the same. All you really should need to do is pass email to that update rather than the id like I was plus your tags and you should be good.