Shallow nesting

Can you please check this code?  The actions are being done, but I don't think my redirect is set up correctly.