REDIRECT TO LOGIN PAGE WHEN NO USERNAME OR PASSWORD IS INPUT

Hi,

My website is supposed to be all in the front end, but when a user inputs NO username or password (BLANK FORM) at the login page, it redirects to the /wp-login.php page. I want users to be redirected to login error page that has already been created when that happens. Meanwhile, I was able to sort out the issue of wrong username and password; just only when the login form is left blank, thats when the issue occurs.

Thank you for your contribution. However, I have tried the code but still doesn't work. The primary issue is when the login form is empty or either the username is empty or the password is empty. Meanwhile, when a wrong username and password is input, it works perfectly fine. More suggestion will be highly appreciated. Thank you

How do you rate me?

Thank you for rating your experience!

We’re thrilled to hear you had a great experience with . Would you like to leave a comment about your experience?
Thanks for voting on your experience with , we’d love to get some feedback please.
Ohh no! We’re really sorry to hear you didn’t have a pleasant experience with , we’re always looking at how we can improve and would appreciate you provide some further feedback here please.
Type your feedback here

it's great that you had a positive one. Based on your experience in this ticket would you please be kind enough to rate us externally on: