the problem is this function
add_action('wp_login_failed', 'wma_login_fail');
function wma_login_fail($username){
// Get the reffering page, where did the post submission come from?
if (isset($_SERVER['HTTP_REFERER'])) {
$referer = parse_url($_SERVER['HTTP_REFERER']);
$referer= '//'.$referer['host'].''.$referer['path'];
// if there's a valid referrer, and it's not the default log-in screen
if(!empty($referer) && !strstr($referer,'wp-login') && !strstr($referer,'wp-admin')){
// let's append some information (login=failed) to the URL for the theme to use
wp_redirect($referer . '?login=failed');
exit;
}
}
}
That overwrite the error show into the default account page of woocommerce