Unfortunately as discussed before, issuing Done (in  Done(Redirect("/")) will not return from the function. You can try "if then else" and move the rest of code to else section but that may not be the best approach either ...