Missing redirect when inserting wrong password details

Hi, I'm using the plugin in a single-site installation (under development, but I can give access if needed).

I'm using a custom login form and the plugin works great but fails when the user inserts a wrong username or password.

This action leads the user to the WP default login page, which is something I'd like to avoid.

Is there a way to trap this case and redirect the user to a given page (or to the page he's coming from)?

Thank you