Honestly such script should only run once, successful or not. Upon success, redirect to the appropriate page. Upon failure, redirect to the login form, prompting the error eg invalid password or similar.
K. Tsang CEng MBCS PMP PMI-ACP OCPJEA OCPJP
posted 4 years ago
The script does work as when I log in, it directs me to the page and there's no errors. But when I go to another page once logged in and return to the member page (which the script is for), it provides the error