Fix for php 5.4
Fixed bug where all logins fail.