JSP, web server, and PostgreSQL dynamically interact for front-end and server-side validation for login and registration