PHP and MySQL login system legacy.