I am coding a simple login/register functionality using JQuery, PHP and PostgreSQL. The following code is from a PHP file which deals with logins. It throws an exception when the login/password combination is wrong.I am coding a simple login/register functionali