PHP and JS based WEB login using PDO prepared statements and SQL