fixing the php error messages