added modal error messages for php errors