If you want to remain in the same page but with the message, try
return "";//or any
string that is not in the config file.
instead of
return "failed";
If it is a different page that you want the message to be displayed, do not put <redirect/> in your config file for the underlying navigation rule taking the outcome 'failed'.