I would like to write a plugin for Magento\Customer\Controller\Account\LoginPost.
Actually I've custom template that is called when customer clicked on Proceed to Checkout. (Only when customer is not logged In)
That Template contains default login form.
After login there customer will redirect to checkout and will place order as guest.
Problem occurring when login failed at custom template. After failed login customer redirected to Core URL that is Customer/account/login that I don't want.
I want to redirect to my custom template when customer failed to login from my custom template.
So Question Is How Can I prevent redirect to default form when login failed at my custom template ?
Note : Default login page functionality should be same no need to change into it.