Webdev module webpage login

I have developed a website with the webdev module. The issue I have is that if you login with the wrong credentials, you get an access denied error. The problem is that once this happens, you cant just go back and re-enter the credentials, you must completely close the browser and then reopen.

Is there any way to make the login function like a normal website where you login, and if the credentials are not correct you get to re-enter the correct credential without having to completely close the browser?