fixed a php error appearing on the login screen