Fix the redirect and add a success message for an email alert