User Authentication updated for PHP 5.4