Fixed loggin php error