Updated PHP and Login using Local Storage